package org.minbox.framework.microservice.goods.service.impl;

import org.minbox.framework.microservice.common.entity.GoodsInfo;
import org.minbox.framework.microservice.goods.mapper.GoodsMapper;
import org.minbox.framework.microservice.goods.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 商品业务逻辑接口实现
 *
 */
@Service
@Transactional
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public GoodsInfo findById(Integer goodsId) {
        return goodsMapper.selectOne(goodsId);
    }
}
